export const state = () => ({
  copyList: [],
});

export const mutations = {
  clearHandle(state) {
    state.copyList.length = 0;
  },
  copyHandle(state, item) {
    const array = Array.of(item).flat(Infinity);
    state.copyList.push(...array);
  },
  setEffect(state, effect) {
    state.effect = effect;
  },
};
